package com.gongj.initializing;

import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Main {

	public static void main(String[] args) {
		ClassPathXmlApplicationContext context =
				new ClassPathXmlApplicationContext("spring-config3.xml");
		A bean = context.getBean(A.class);
		System.out.println(bean.getName());
	}
}
